home *** CD-ROM | disk | FTP | other *** search
/ Network Supervisor's Toolkit / Network Supervisor's Toolkit.iso / btrieve / btfiler / btcreate.bat < prev    next >
DOS Batch File  |  1996-07-10  |  535b  |  23 lines

  1. echo off
  2. if '%1' == '' goto NO_PARMS
  3. if '%2' == '' goto NO_PARMS
  4. goto OK
  5. :NO_PARMS
  6. echo USAGE: BTCREATE [.BTB File] [new Btrieve file]
  7. goto END
  8. :OK
  9. rem
  10. rem 'M' to choose Misc. Btrieve Functions, R for cReate, %1 for .BTB
  11. rem    file'!' for ENTER, %2 the New file, '!' for enter, and '#' for ESC.
  12. rem
  13. echo MR^C%1!BTCREATE.DAT!### >btcreate.txt
  14. btfiler /k:btcreate.txt
  15. del btcreate.txt
  16. if exist BTCREATE.DAT goto OK2:
  17. echo Error creating temporary file...
  18. goto END
  19. :OK2
  20. if exist %2 DEL %2
  21. ren BTCREATE.DAT %2
  22. :END
  23.